package edu.drexel.jrexel2d.networking;

import java.net.InetAddress;

import edu.drexel.jrexel2d.networking.socket.GameServerSocket;

public class PlayerNetworkInfo {
	public int getPlayerId() {
		return playerId;
	}

	public void setPlayerId(int playerId) {
		this.playerId = playerId;
	}

	public InetAddress getIp() {
		return ip;
	}

	public void setIp(InetAddress ip) {
		this.ip = ip;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	private int playerId;
	private InetAddress ip;
	private int port;
	private GameServerSocket serverSocket;
	
	public GameServerSocket getServerSocket() {
		return serverSocket;
	}

	public void setServerSocket(GameServerSocket serverSocket) {
		this.serverSocket = serverSocket;
	}

	public PlayerNetworkInfo(int playerId,InetAddress ip, int port){
		this.playerId=playerId;
		this.ip= ip;
		this.port=port;
	}
	
	public PlayerNetworkInfo(int playerId,InetAddress ip, int port, GameServerSocket serverSocket){
		this.playerId=playerId;
		this.ip= ip;
		this.port=port;
		this.serverSocket=serverSocket;
	}
	public PlayerNetworkInfo(InetAddress ip, int port, GameServerSocket serverSocket){
		this.ip= ip;
		this.port=port;
		this.serverSocket=serverSocket;
	}
	
	public PlayerNetworkInfo(InetAddress ip, int port){
		this.ip= ip;
		this.port=port;
	}

}
